<div id="taxonomy">
    <%= @plant.family.apg_name -%>&nbsp;<%= h(@plant.genus) -%>&nbsp;<%= h(@plant.specific_epithet) -%>
    <% if user? %> 
    <%= link_to 'Edit', {:action => 'edit_plant', :id => @plant}, { :class => "action" }  %>
    <% end %>
</div>

<% %w{ GEOGRAPHY ECOLOGY BREEDING_SYSTEM POLLINATION }.each do | group | %>
    <div class="trait_group">
        <h2><%= group.humanize %></h2>
        <% eval("Plant::#{group}").each do | @trait | %>
            <%= render :partial => 'single_trait', :object => @trait %>
        <% end %>
    </div>
<% end %>

<div class="trait_group">
    <h2>Floral characters</h2>
    <% @trait = "dichogamy" %>
    <%= render :partial => 'single_trait', :object => @trait %>
    <% @trait = "flower_width" %>
    <%= render :partial => 'trait_list', :object => eval("@plant.#{@trait.pluralize}") %>
</div>

<div class="trait_group">
    <h2>Seed characters</h2>
    <% @trait = "seed_disperser" %>
    <%= render :partial => 'single_trait', :object => @trait %>
    <% @trait = "fruit_type" %>
    <%= render :partial => 'single_trait', :object => @trait %>
    <% @trait = "seed_mass" %>
    <%= render :partial => 'trait_list', :object => eval("@plant.#{@trait.pluralize}") %>
    <% @trait = "seed_volume" %>
    <%= render :partial => 'trait_list', :object => eval("@plant.#{@trait.pluralize}") %>
</div>

<div class="trait_group">
    <h2>Inflorescence characters</h2>
    <% @trait = "inflorescence_type" %>
    <%= render :partial => 'single_trait', :object => @trait %>
    <% @trait = "display_size" %>
    <%= render :partial => 'trait_list', :object => eval("@plant.#{@trait.pluralize}") %>
    <% @trait = "flower_production" %>
    <%= render :partial => 'trait_list', :object => eval("@plant.#{@trait.pluralize}") %>
</div>

<div class="trait_group">
    <h2>Gamete production (per flower)</h2>
    <% Plant::GAMETE_PRODUCTION.each do | @trait | %>
        <%= render :partial => 'trait_list', :object => eval("@plant.#{@trait.pluralize}") %>
    <% end %>
</div>

<div class="trait_group">
    <h2>Seed production (per flower)</h2>
    <% Plant::SEED_PRODUCTION.each do | @trait | %>
        <%= render :partial => 'trait_list', :object => eval("@plant.#{@trait.pluralize}") %>
    <% end %>
</div>

<div class="trait_group">
    <h2>Inbreeding depression</h2>
    <% Plant::INBREEDING_DEPRESSION.each do | @trait | %>
        <%= render :partial => 'trait_list', :object => eval("@plant.#{@trait.pluralize}") %>
    <% end %>
</div>

<div class="trait_group">
    <h2>Predation</h2>
    <% Plant::PREDATION.each do | @trait | %>
        <%= render :partial => 'trait_list', :object => eval("@plant.#{@trait.pluralize}") %>
    <% end %>
</div>

<!-- <div class="plant_genus">
    <%= in_place_editor_field :plant, 'genus' %>
</div> -->
